package ${servicePackage};

import com.baomidou.mybatisplus.core.metadata.IPage;
import ${package.Entity}.${entity};
import ${package.Entity}.${entity}Entity;
import ${superServiceClassPackage};
import com.web.common.result.R;

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

	/**
 	 * 按照条件查询数据列表
	 * @param condition 查询条件
	 *
	 * @author ${author}
	 * @since ${date}
	 */
	R<IPage<${entity}Entity>> getList(${entity}Entity condition);
	
	/**
 	 * 保存数据信息
	 * @param ${entity?uncap_first} 数据信息
	 *
	 * @author ${author}
	 * @since ${date}
	 */
	R<Object> saveInfo(${entity} ${entity?uncap_first});
	
	/**
 	 * 保存数据信息
	 * @param ${entity?uncap_first} 数据信息
	 *
	 * @author ${author}
	 * @since ${date}
	 */
	R<Object> updateInfo(${entity} ${entity?uncap_first});
	
	/**
 	 * 删除数据信息
	 * @param ${entity?uncap_first} 数据信息
	 *
	 * @author ${author}
	 * @since ${date}
	 */
	R<Object> deleteInfo(${entity} ${entity?uncap_first});
}
</#if>
